package com.scale.service.conversation.service;

import com.example.conversation.dto.SendMessageDTO;
import com.example.conversation.entity.Messages;
import com.example.conversation.vo.MessageVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 对话消息表 服务类
 * </p>
 *
 * @author crp
 * @since 2025-09-24
 */
public interface MessagesService extends IService<Messages> {

    /**
     * 获取聊天记录
     */
    List<MessageVO> getChatHistory(Long characterId, Long userId, Integer page, Integer size);

    /**
     * 发送消息并获取AI回复
     */
    MessageVO sendMessageAndGetReply(SendMessageDTO sendMessageDTO, Long userId);

    /**
     * 更新消息状态
     */
    boolean updateMessageStatus(Long messageId, String status);
}
